package Demo02;

import java.util.ArrayList;
import java.util.Collection;

public class Demo01Collection {
    public static void main(String[] args) {
        Collection<String> coll = new ArrayList<>();
        System.out.println(coll);

        boolean b1 = coll.add("张三");
        coll.add("张三");
        coll.add("李四");
        System.out.println(b1);
        System.out.println(coll);

        int size = coll.size();
        System.out.println(size);

    }
}
